package com.jiumi.baseconfig.domain;

import com.jiumi.common.annotation.Excel;
import com.jiumi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 套餐课程对象 base_meal_course
 *
 * @author jiumi
 * @date 2023-05-21
 */
@Data
public class BaseMealCourse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long mealId;
    private Long[] mealIds;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Long courseId;
    private Long[] courseIds;

    /** 排序编号 */
    @Excel(name = "排序编号")
    private Long sortNo;

    /** 是否展示N不展示Y展示 */
    @Excel(name = "是否展示N不展示Y展示")
    private String showFlag;

    private String courseName;

    private BigDecimal price;

    public void setMealId(Long mealId)
    {
        this.mealId = mealId;
    }

    public Long getMealId()
    {
        return mealId;
    }
    public void setCourseId(Long courseId)
    {
        this.courseId = courseId;
    }

    public Long getCourseId()
    {
        return courseId;
    }
    public void setSortNo(Long sortNo)
    {
        this.sortNo = sortNo;
    }

    public Long getSortNo()
    {
        return sortNo;
    }
    public void setShowFlag(String showFlag)
    {
        this.showFlag = showFlag;
    }

    public String getShowFlag()
    {
        return showFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mealId", getMealId())
            .append("courseId", getCourseId())
            .append("sortNo", getSortNo())
            .append("showFlag", getShowFlag())
            .toString();
    }
}
